package com.zhu.service.edu.feign.fallback;

import com.zhu.commons.utils.R;
import com.zhu.service.edu.feign.OssFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Oss挂掉之后备用给方案  用作sentinel
 */
@Slf4j
@Service
public class OssFeignFallback implements OssFeignService {
    @Override
    public R test() {
        return null;
    }

    @Override
    public R deleteFile(String url) {
        log.info("熔断保护");
        return R.error();
    }

}
